import typescript from '@rollup/plugin-typescript'

/**@type {import('rollup').RollupOptions} */
export default {
  input: './src/index.tsx',
  output: {
    dir: './es',
    format: 'esm',
    sourcemap: true,
    preserveModules: true,
  },
  plugins: [
    typescript(),
    // babel({
    //   presets: ['@babel/preset-react'],
    //   exclude: /node_module/,
    // }),
  ],
  external: ['react', 'react-dom', 'react/jsx-runtime'],
}
